import request from '@/utils/request'

// 查询洗煤煤种配置列表
export function listCoalWashType(query) {
  return request({
    url: '/dispatch/coalWashType/list',
    method: 'get',
    params: query
  })
}

// 查询洗煤煤种配置详细
export function getCoalWashType(typeId) {
  return request({
    url: '/dispatch/coalWashType/' + typeId,
    method: 'get'
  })
}

// 新增洗煤煤种配置
export function addCoalWashType(data) {
  return request({
    url: '/dispatch/coalWashType',
    method: 'post',
    data: data
  })
}

// 修改洗煤煤种配置
export function updateCoalWashType(data) {
  return request({
    url: '/dispatch/coalWashType',
    method: 'put',
    data: data
  })
}

// 删除洗煤煤种配置
export function delCoalWashType(typeId) {
  return request({
    url: '/dispatch/coalWashType/' + typeId,
    method: 'delete'
  })
}
